﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Castle.Core;

namespace ComDevFx.Arch.Base.Persister
{
    public abstract class AutoJobServiceBase : ServiceBase, IStartable
    {
        public virtual void Start() { }
        public virtual void Stop() { }
    }


    /* 
     * It's a demo to show how to config castle's startable facility.
     * 
        <?xml version="1.0" encoding="utf-8" ?>
        <configuration>

            <!--配置一个起动设备组件-->
            <facilities>
            <facility id="startable"
                type="Castle.Facilities.Startable.StartableFacility, Castle.Windsor" />
            </facilities>

            <components>
            <!--自定义的JOB服务-->
            <component id="SampleJobService"
                type="Teach.Core.Imp.DbJob.SampleJobService, Teach.Core.Imp.DbJob"
                startable="true"  startMethod="Start" stopMethod="Stop" />
            </components>

        </configuration>
     * 
     */
}
